﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="LocationTagNumbers.aspx.vb" Inherits="Haunted.LocationTagNumbers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="Tag" 
                    DataNavigateUrlFormatString="LocationTagNumbers.aspx?Tag={0}" 
                    DataTextField="Tag" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HauntedLocationString %>" 
            ProviderName="<%$ ConnectionStrings:HauntedLocationString.ProviderName %>" 
            SelectCommand="SELECT [Tag] FROM [Tags]"></asp:SqlDataSource>
    </p>
    <p>
        <br />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="LocationName" HeaderText="LocationName" 
                    SortExpression="LocationName" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HauntedLocationString %>" 
            ProviderName="<%$ ConnectionStrings:HauntedLocationString.ProviderName %>" 
            SelectCommand="SELECT [LocationName], [Tag] FROM [HauntedLocationsView] WHERE ([Tag] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="Tag" QueryStringField="Tag" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
</asp:Content>
